package com.example.lib_router

import com.alibaba.android.arouter.facade.Postcard
import com.alibaba.android.arouter.facade.callback.NavigationCallback
import com.example.lib_base.path.RouterPath

class LocalDegradeCallBack(private var path:String="",private var group:String="") :NavigationCallback{
   //找到下一个页面
    override fun onFound(postcard: Postcard?) {

    }
    //找不到下一个页面
    override fun onLost(postcard: Postcard?) {
        postcard?.group= RouterPath.GROUP_EMPTY
        postcard?.path= RouterPath.PATH_EMPTY_PAGE
        postcard?.navigation()
    }
    //成功达到下一个页面
    override fun onArrival(postcard: Postcard?) {

    }
    //调转页面被拦截
    override fun onInterrupt(postcard: Postcard?) {

    }
}